<extend name="Public:company_center"/>

<block name="right_main">
	<div class="col-xs-15 col-md-10 wei-user-admin-content">
		<div class="wei-user-admin-title-bar">
			<div class="container-nav-tabs-2">
				<ul class="nav nav-tabs-2" role="tablist">
					<li class="active"><a >修改密码</a></li>
				</ul>
			</div>
		</div>
		<form class="form-horizontal" method="post" action="{:U('AccountSet/password')}"  id="ajaxForm">
			<div class="form-group">
				<label class="col-sm-2 control-label" for="old_password">原密码&nbsp;<span>*</span>
				</label>
				<div class="col-sm-5">
					<input class="form-control" type="password" id="old_password" name="old_password" value="" placeholder="必填">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="password">新密码&nbsp;<span>*</span>
				</label>
				<div class="col-sm-5">
					<input class="form-control" type="password" id="password" name="password" value="" placeholder="必填">
					<span class="help-block">密码长度为6-12位字符</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="re_password">重复新密码&nbsp;
					<span>*</span>
				</label>
				<div class="col-sm-5">
					<input class="form-control" type="password" id="re_password" name="re_password" value="" placeholder="必填">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">&nbsp;</label>
				<div class="col-sm-5">
					<button type="submit" class="btn btn-primary">提交</button>
					&nbsp;
					<button type="button" class="btn btn-default" onclick="history.go(-1)">取消</button>
				</div>
			</div>
		</form>
		<script>
		seajs.use(['$','form-ajax','bootbox'],function($){
			var ajaxFrom = $('#ajaxForm');
			ajaxFrom.ajaxForm({
				dataType:'json',
				success:function(data){
					bootbox.alert({
						message:data.info,
						title: "提示信息"
					});
					return false;
				}
			})
		})
		</script>
	</div>
</block>